using Catchbase.Service.API;
using Catchbase.TestTools.UTest;
using Microsoft.Practices.Unity;

namespace Catchbase.Service.ATest
{
    public class ContainerConfiguration
    {
        public void Configure(IUnityContainer container)
        {
            var settings = new SecretSettings("c:\\p.txt");
            //container.RegisterType<CatchbaseUriBuilder>(new InjectionConstructor("http://catchbase.cloudapp.net/"));
            container.RegisterType<CatchbaseUriBuilder>(new InjectionConstructor("http://localhost:81/"));
            container.RegisterInstance<ISecurityManager>(new SecurityManager(settings.GoogleUsername, settings.SharedSecret));
            container.RegisterInstance(settings);
        }
    }
}